package com.bjb.vr.remote.controller;

import com.bjb.vr.common.ao.ResPlatformAo;
import com.bjb.vr.common.result.BaseResult;
import com.bjb.vr.common.result.CommonResult;
import com.bjb.vr.common.vo.ResPlatformVo;
import com.bjb.vr.remote.openfeign.ResourcesService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/remote/v1")
public class RemoteController {

    @Resource
    private ResourcesService resourcesService;


    @PostMapping("/resources")
    public BaseResult<ResPlatformVo> getResources(@RequestBody ResPlatformAo resPlatformAo) {
        Object object = resourcesService.resourceList(resPlatformAo);
        return CommonResult.Ok().setResult(object);
    }

}
